package com.lbl.service.Impl;

import com.lbl.dao.IPersonDao;
import com.lbl.domain.Person;
import com.lbl.service.IPersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class PersonServiceImpl implements IPersonService {

    @Autowired
    private IPersonDao iPersonDao;
    @Override
    public boolean login(Person person) {
        boolean result = iPersonDao.findByUserNameAndPassword(person);
        return result;
    }
}
